<!-- Web service title. -->
<div id="doctitle">
	<h2>Rain Gage Readings</h2>
</div>

<!-- Web service location. -->
<div id="doclocation">
	<a href="v1/ws_raingage_readings.php">Service URL</a>
</div>

<!-- Brief description of the web service. -->
<div id="docdescription">
	<h3>Description</h3>
	<p>Retrieve the readings of all the Rain Gages inside Mecklenburg County during a certain time frame (ex: last 60 minutes).</p>
</div>

<!-- Web service input description. Format is a required argument for your web service. -->
<div id="docinput">
	<h3>Service Arguments</h3>
	<table id="doctable">
		<tbody>
			<tr>
				<th>PARAMETER</th>
				<th>DESCRIPTION</th>
			</tr>
			<tr>
				<td>timeframe</td>
				<td>Timeframe (in minutes), for which rainfall readings are requested</td>
			</tr>
			<tr>
				<td>format</td>
				<td>Format for the output. Value is either 'xml' for xml output or
					'json' for JSON output.</td>
			</tr>
		</tbody>
	</table>
</div>

<!-- Web service output. -->
<div id="docoutput">
	<h3>Service Output</h3>
	<!-- If the service output varies (i.e. you have the user pass a list of fields to be returned), just write it varies in a <p> tag and skip the table -->
	<table id="doctable">
		<tbody>
			<tr>
				<th>PARAMETER</th>
				<th>DESCRIPTION</th>
			</tr>
			<tr>
				<td>sensorid</td>
				<td>Rain Gage Number used by Charlotte Mecklenburg Storm Water Services (Alert).</td>
			</tr>
			<tr>
				<td>usgs_station_no</td>
				<td>Rain Gage Number used by USGS (NWIS).</td>
			</tr>
			<tr>
				<td>sitename</td>
				<td>Rain Gage Name.</td>
			</tr>
			<tr>
				<td>longitude</td>
				<td>Longitude.</td>
			</tr>
			<tr>
				<td>latitude</td>
				<td>Latitude.</td>
			</tr>
			<tr>
				<td>rainamt</td>
				<td>Amount of rainfall recorded during the requested timeframe in inches.</td>
			</tr>
		</tbody>
	</table>
</div>

<!-- Sample service output. -->
<div id="docsample">
	<h3>Sample Output</h3>
	
	<p>Sample XML Output</p>
	<pre>
	&lt;rows total-rows="71"&gt;
	&lt;row&gt;
	&lt;column name="sensorid"&gt;4501&lt;/column&gt;
	&lt;column name="usgs_station_no"&gt;351812080445545&lt;/column&gt;
	&lt;column name="sitename"&gt;Ken Hoffman CRN01&lt;/column&gt;
	&lt;column name="longitude"&gt;-80.75&lt;/column&gt;
	&lt;column name="latitude"&gt;35.303055550000003&lt;/column&gt;
	&lt;column name="rainamt"&gt;0&lt;/column&gt;
	&lt;/row&gt;
	.
	.
	&lt;/rows&gt;
	</pre>
	
	<p>Sample JSON Output</p>
	<pre>
	{"total_rows":"71","rows":[{"row":
	{"sensorid":"4501","usgs_station_no":"351812080445545","sitename":"Ken Hoffman CRN01","longitude":"-80.75","latitude":"35.303055550000003","rainamt":"0"}},
	.
	.
	]}
	</pre>
</div>